package szf.im.route.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import szf.im.route.util.ZkClient;

/**
 * @author shizhanfu
 */
@RestController
@RequestMapping("route")
public class RouterController {
    @Autowired
    StringRedisTemplate redisTemplate;
    @Autowired
    ZkClient zkClient;

    @RequestMapping(value = "server", method = RequestMethod.GET)
    public String GetServer() throws Exception {
        return zkClient.getBalanceServer();
    }
}
